<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>"/>
		<meta charset="utf-8" />
		<title>Document</title>
		<style type="text/css">
			table{
				width:100%;
				border-collapse:collapse;
			}
			table tr{
				border:1px solid #B5CFD9;
			}
			table td{
				border:1px solid #B5CFD9;
				text-align: center;
			}
			input{
				float:right;
				margin-top:20px;
				color:#fff;
				background-color:#B87354;
				padding-right:10px;
				cursor: pointer;
				border:0px;
				border-radius:5px;
				width:80px;
				height:30px;	
			}
			input:hover{
				background-color: #AA895E;
			}
		</style>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript">
			
		</script>
	</head>
	<body>
	<%@ include file="/HT/login_control.jsp" %>
			<h1 style="text-align:center">轮播图管理</h1>
			<table>
				<tr>
					<td>ID</td>
					<td>缩略图</td>
					<td>描述</td>
					<td>显示状态</td>
					<td>操作</td>
				</tr>
				<c:forEach items="${lptlist }" var="lpt">
					<tr>
						<td>${lpt.lptid }</td>
						<td style="padding-top:5px;" id="img"><img src="HT/images/lunbo/${lpt.lptimage }" width="50px"></td>
						<td>${lpt.lptmiaoshu }</td>
						<c:if test="${lpt.lpttype==1 }">
							<td id="type">已显示</td>
						</c:if>
						<c:if test="${lpt.lpttype==0 }">
							<td id="type">未显示</td>
						</c:if>
						<td><a href="updatelunbo.shtml?id=${lpt.lptid }">修改</a>&emsp;<a href="deletelunbo.shtml?id=${lpt.lptid }" onclick="return confirm('确定要删除吗？')">删除</a></td>
					</tr>
				</c:forEach>
			</table>
			<a href="HT/HTaddlunbo.jsp"><input type="button" value="添加"></a>
			
	</body>
</html>
